package com.entity;

public class Order {
	private  int oid;
	private  Consumer consumer;//用户外键
	private  Cake     cake;//蛋糕外键
	private  int      onum;//数量
	private  double   ounitPrice;//单价
	private  double   ocost; // 总价
	private  String   odelDate;
	private  String   oaddress;
	private  double   odiscount;//标识订单(几个子商品属于一个订单中)
	private  int      status;//订单状态
	public int getOid() {
		return oid;
	}
	public void setOid(int oid) {
		this.oid = oid;
	}
	public Consumer getConsumer() {
		return consumer;
	}
	public void setConsumer(Consumer consumer) {
		this.consumer = consumer;
	}
	public Cake getCake() {
		return cake;
	}
	public void setCake(Cake cake) {
		this.cake = cake;
	}
	public int getOnum() {
		return onum;
	}
	public void setOnum(int onum) {
		this.onum = onum;
	}
	public double getOunitPrice() {
		return ounitPrice;
	}
	public void setOunitPrice(double ounitPrice) {
		this.ounitPrice = ounitPrice;
	}
	public double getOcost() {
		return ocost;
	}
	public void setOcost(double ocost) {
		this.ocost = ocost;
	}
	public String getOdelDate() {
		return odelDate;
	}
	public void setOdelDate(String odelDate) {
		this.odelDate = odelDate;
	}
	public String getOaddress() {
		return oaddress;
	}
	public void setOaddress(String oaddress) {
		this.oaddress = oaddress;
	}
	public double getOdiscount() {
		return odiscount;
	}
	public void setOdiscount(double odiscount) {
		this.odiscount = odiscount;
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "Order [oid=" + oid + ", consumer=" + consumer + ", cake=" + cake + ", onum=" + onum + ", ounitPrice="
				+ ounitPrice + ", ocost=" + ocost + ", odelDate=" + odelDate + ", oaddress=" + oaddress + ", odiscount="
				+ odiscount + ", status=" + status + "]";
	}
	
	
}
